package com.geotmt.billingcenter.modules.hive.mapper;

import com.geotmt.billingcenter.common.entry.CostStatisEntry;
import com.geotmt.billingcenter.modules.hive.provider.CostHiveProvider;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;

/**
 * @Description Hive 成本 Mapper类
 * @Author      yanghanwei
 * @Mail        yanghanwei@geotmt.com
 * @Date        2019/4/10 11:17
 * @Version     v1
 **/
@Mapper
public interface CostHiveMapper {

    /**
     * Hive某一天的成本量统计
     * @param dayFlag
     * @return
     */
    @SelectProvider(type = CostHiveProvider.class, method = "listCostForDay")
    List<CostStatisEntry> listCost(String dayFlag);

    /**
     * Hive某段时间的成本量统计
     * @param startDay
     * @param endDay
     * @return
     */
    @SelectProvider(type = CostHiveProvider.class, method = "listCostForDate")
    List<CostStatisEntry> listCostForDate(@Param(value = "startDay") String startDay,
                                          @Param(value = "endDay") String endDay);

}
